package com.cdh.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色菜单权限关系表 角色菜单权限关系表
 * </p>
 *
 * @author CDHong
 * @since 2018-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role_menu_btn")
public class RoleMenuBtn implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色编号
     */
    @TableField("role_id")
    private Integer roleId;

    /**
     * 菜单编号
     */
    @TableField("menu_id")
    private Integer menuId;

    /**
     * 权限编号
     */
    @TableField("btn_id")
    private Integer btnId;

    /**
     * 操作人编号
     */
    @TableField("create_id")
    private Integer createId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    public RoleMenuBtn(Integer roleId, Integer menuId, Integer btnId) {
        this.roleId = roleId;
        this.menuId = menuId;
        this.btnId = btnId;
    }
}
